/*
 * @FilePath: /vue3-ts-h5-template/src/main.ts
 * @Description: main.ts文件
 */
import './styles/main.css';
import './styles/tailwind.css';
import { createApp } from 'vue';
import store from './stores';

import App from './App.vue';
import router from './router';
import VConsole from 'vconsole';
// 引入组件样式
import 'vant/lib/index.css';
// 全局引入本地svg图标
import ISvgIcon from './components/i-svg-icon/index.vue';
import 'virtual:svg-icons-register';

const app = createApp(App);

if (import.meta.env.VITE_APP_VCONSOLE === 'true') {
  new VConsole();
}
app.component('i-svg-icon', ISvgIcon);
app.use(store);
app.use(router);

app.mount('#app');
